package cn.iocoder.ny.module.mall.controller.admin.order.vo;


import cn.iocoder.ny.module.mall.domain.MallBannerPageVo;
import cn.iocoder.ny.module.mall.domain.MallOrder;
import cn.iocoder.ny.module.mall.domain.MallOrderDetails;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class MallOrderVo extends PageParam implements Serializable {

    /** 用户头像 */
    private String avatar;

    /** 用户昵称 */
    private String nickName;

    /** 订单基本信息 */
    private MallOrder mallOrder;

    /** 订单详情 */
    private List<MallOrderDetails> mallOrderDetails;

    //lg 头疼
    @TableField(value = "tenant_id")
    @NotNull(message = "租户ID不允许为空",groups = {MallBannerPageVo.Add.class, MallBannerPageVo.Edit.class})
    private Long tenantId;

    private static final long serialVersionUID = 1L;

}

